const express = require('express')
const router = express.Router()
const userController = require('../controller/userController')

// 查询用户列表
router.get('/user/list', userController.getUserlist)
// 添加一个用户
router.post('/user/create', userController.createUser)
//删除一个用户
router.post('/user/delete', userController.deleteUser)
//修改一个用户
router.post('/user/update', userController.updateUser)
//查询
router.get('/user/search', userController.searchUser)


module.exports = router